﻿// Variável que evita conflito com outras bibliotecas
var j = jQuery.noConflict();
var vMaster = '#cphMasterPrincipal_';

//Mascara no campos da tela.
j(document).ready(function () {

    navegador = /msie/i.test(navigator.userAgent);
    if (navegador) {

        j("#frmMaster").keypress(function (e) {
            var tecla = (e.keyCode ? e.keyCode : e.which);
            if (tecla == 13)
            //submit(e);
                document.getElementById("lnbEntrar").click();
        });
    }
    else {
        j("frmMaster,input:text,select,input:radio,input:checkbox,input:file").keypress(function (e) {
            var tecla = (e.keyCode ? e.keyCode : e.which);
            if (tecla == 13)
                submit(e);
        });
    }

});